package com.biqee.dao.impl;

import java.util.List;

import com.biqee.dao.UserVersionDAO;
import com.biqee.dao.base.BaseDAOImpl;
import com.biqee.model.db.UserVersion;

public class UserVersionDAOImpl extends BaseDAOImpl implements UserVersionDAO {

	@Override
	public Long create(UserVersion userVersion) {
		return (Long)getSqlMapClientTemplate().insert(getRealSqlId("create"), userVersion);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<UserVersion> readByBqUserId(Long bqUserId) {
		return (List<UserVersion>)getSqlMapClientTemplate().queryForList(getRealSqlId("readByBqUserId"), bqUserId);
	}

}
